3.50 \(\int \frac {x (A+B x^2)}{b x^2+c x^4} \, dx\)

Optimal. Leaf size=34 \[ \frac {(b B-A c) \log \left (b+c x^2\right )}{2 b c}+\frac {A \log (x)}{b} \]

[Out]

A*ln(x)/b+1/2*(-A*c+B*b)*ln(c*x^2+b)/b/c

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {1584, 446, 72} \[ \frac {(b B-A c) \log \left (b+c x^2\right )}{2 b c}+\frac {A \log (x)}{b} \]

Antiderivative was successfully verified.

[In]

Int[(x*(A + B*x^2))/(b*x^2 + c*x^4),x]

[Out]

(A*Log[x])/b + ((b*B - A*c)*Log[b + c*x^2])/(2*b*c)

Rule 72

Int[((e_.) + (f_.)*(x_))^(p_.)/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Int[ExpandIntegrand[(
e + f*x)^p/((a + b*x)*(c + d*x)), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && IntegerQ[p]

Rule 446

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.), x_Symbol] :> Dist[1/n, Subst[Int
[x^(Simplify[(m + 1)/n] - 1)*(a + b*x)^p*(c + d*x)^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p, q}, x] &&
 NeQ[b*c - a*d, 0] && IntegerQ[Simplify[(m + 1)/n]]

Rule 1584

Int[(u_.)*(x_)^(m_.)*((a_.)*(x_)^(p_.) + (b_.)*(x_)^(q_.))^(n_.), x_Symbol] :> Int[u*x^(m + n*p)*(a + b*x^(q -
 p))^n, x] /; FreeQ[{a, b, m, p, q}, x] && IntegerQ[n] && PosQ[q - p]

Rubi steps

\begin {align*} \int \frac {x \left (A+B x^2\right )}{b x^2+c x^4} \, dx &=\int \frac {A+B x^2}{x \left (b+c x^2\right )} \, dx\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {A+B x}{x (b+c x)} \, dx,x,x^2\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \left (\frac {A}{b x}+\frac {b B-A c}{b (b+c x)}\right ) \, dx,x,x^2\right )\\ &=\frac {A \log (x)}{b}+\frac {(b B-A c) \log \left (b+c x^2\right )}{2 b c}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 34, normalized size = 1.00 \[ \frac {(b B-A c) \log \left (b+c x^2\right )}{2 b c}+\frac {A \log (x)}{b} \]

Antiderivative was successfully verified.

[In]

Integrate[(x*(A + B*x^2))/(b*x^2 + c*x^4),x]

[Out]

(A*Log[x])/b + ((b*B - A*c)*Log[b + c*x^2])/(2*b*c)

________________________________________________________________________________________

fricas [A]  time = 0.99, size = 32, normalized size = 0.94 \[ \frac {2 \, A c \log \relax (x) + {\left (B b - A c\right )} \log \left (c x^{2} + b\right )}{2 \, b c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(B*x^2+A)/(c*x^4+b*x^2),x, algorithm="fricas")

[Out]

1/2*(2*A*c*log(x) + (B*b - A*c)*log(c*x^2 + b))/(b*c)

________________________________________________________________________________________

giac [A]  time = 0.20, size = 34, normalized size = 1.00 \[ \frac {A \log \left ({\left | x \right |}\right )}{b} + \frac {{\left (B b - A c\right )} \log \left ({\left | c x^{2} + b \right |}\right )}{2 \, b c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(B*x^2+A)/(c*x^4+b*x^2),x, algorithm="giac")

[Out]

A*log(abs(x))/b + 1/2*(B*b - A*c)*log(abs(c*x^2 + b))/(b*c)

________________________________________________________________________________________

maple [A]  time = 0.05, size = 37, normalized size = 1.09 \[ \frac {A \ln \relax (x )}{b}-\frac {A \ln \left (c \,x^{2}+b \right )}{2 b}+\frac {B \ln \left (c \,x^{2}+b \right )}{2 c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*(B*x^2+A)/(c*x^4+b*x^2),x)

[Out]

-1/2/b*ln(c*x^2+b)*A+1/2/c*ln(c*x^2+b)*B+A*ln(x)/b

________________________________________________________________________________________

maxima [A]  time = 1.34, size = 35, normalized size = 1.03 \[ \frac {A \log \left (x^{2}\right )}{2 \, b} + \frac {{\left (B b - A c\right )} \log \left (c x^{2} + b\right )}{2 \, b c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(B*x^2+A)/(c*x^4+b*x^2),x, algorithm="maxima")

[Out]

1/2*A*log(x^2)/b + 1/2*(B*b - A*c)*log(c*x^2 + b)/(b*c)

________________________________________________________________________________________

mupad [B]  time = 0.08, size = 32, normalized size = 0.94 \[ \frac {A\,\ln \relax (x)}{b}-\frac {\ln \left (c\,x^2+b\right )\,\left (A\,c-B\,b\right )}{2\,b\,c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x*(A + B*x^2))/(b*x^2 + c*x^4),x)

[Out]

(A*log(x))/b - (log(b + c*x^2)*(A*c - B*b))/(2*b*c)

________________________________________________________________________________________

sympy [A]  time = 0.75, size = 26, normalized size = 0.76 \[ \frac {A \log {\relax (x )}}{b} + \frac {\left (- A c + B b\right ) \log {\left (\frac {b}{c} + x^{2} \right )}}{2 b c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(B*x**2+A)/(c*x**4+b*x**2),x)

[Out]

A*log(x)/b + (-A*c + B*b)*log(b/c + x**2)/(2*b*c)

________________________________________________________________________________________